package com.snailxr.base.task.domain;

import org.bson.types.ObjectId;
import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.mapping.Document;

import com.snailxr.base.annotation.AutoIncKey;

/**
 * 数据字典实体类
 * @author luoshijian
 *
 */
@Document(collection="dataDictionary")//数据库集合为dataDictionary
public class DataDictionary {
	@AutoIncKey
	private int dicId;
	private String dicName;
	private String dicType;
	private int channelId;//栏目ID
	private String channelName;
	private String orgName;
	private String orgCode;//部门编码
	private String region;
	private String regionCode;//区域编码
	public String getDicName() {
		return dicName;
	}
	public void setDicName(String dicName) {
		this.dicName = dicName;
	}
	public String getDicType() {
		return dicType;
	}
	public void setDicType(String dicType) {
		this.dicType = dicType;
	}
	public int getChannelId() {
		return channelId;
	}
	public void setChannelId(int channelId) {
		this.channelId = channelId;
	}
	public String getOrgName() {
		return orgName;
	}
	public void setOrgName(String orgName) {
		this.orgName = orgName;
	}
	public String getOrgCode() {
		return orgCode;
	}
	public void setOrgCode(String orgCode) {
		this.orgCode = orgCode;
	}
	public String getRegion() {
		return region;
	}
	public void setRegion(String region) {
		this.region = region;
	}
	public String getRegionCode() {
		return regionCode;
	}
	public void setRegionCode(String regionCode) {
		this.regionCode = regionCode;
	}
	public String getChannelName() {
		return channelName;
	}
	public void setChannelName(String channelName) {
		this.channelName = channelName;
	}
	public int getDicId() {
		return dicId;
	}
	public void setDicId(int dicId) {
		this.dicId = dicId;
	}
	@Override
	public String toString() {
		return String.format(
				"DataDictionary [dicId=%s, dicName=%s, dicType=%s, channelId=%s, channelName=%s, orgName=%s, orgCode=%s, region=%s, regionCode=%s]",
				dicId,dicName, dicType, channelId, channelName, orgName, orgCode, region, regionCode);
	}
}
